export const Valid = {
    password: {
        pattern: /^[@A-Za-z0-9!#$%^&*.~,]{6,20}$/,
        msg: '密码长度6-20位',
        valid: (value) => {
            return Valid.password.pattern.test(value)
        }
    },
    isURL: {
        pattern: /^(https?:|mailto:|tel:)/,
        msg: '外链',
        valid: (value) => {
            return Valid.isURL.pattern.test(value)
        }
    },
}


